import { http } from '@/common/service/service.js' 


/*
 * 小程序登陆
 * */
export function wxappAuth(data) {
  return http.post('/auth/login', data, {
    login: false,
  })
}

/*
 * 用户信息
 * */
export function getUserInfo() {
  return http.get('/auth/userinfo')
}

/*
 * 注册
 * */
export function postRegister(data) {
  return http.post('/auth/register',data)
}

/*
 * 退出登录
 * */
export function getLogout() {
  return http.post('/auth/logout')
}

/*
 * 用户修改信息
 * */
export function postUserEdit(data) {
  return http.post('/auth/user/edit', data)
}

